﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="LiveSSOForDotNet.Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title></title>
    <style type="text/css">
      table
      {
         font-family: verdana;
         font-size: 10pt;
         color: black;
         background-color: white;
      }
      h1
      {
         font-family: verdana;
         font-size: 10pt;
         font-weight: bold;
         color: #0070C0;
      }
   </style>  
    
</head>
<body>
    <form id="form1" runat="server">
    <asp:Panel ID="pnlContentLogin" runat="server">
    <table width="320"><tr><td>
        <h1>Welcome to the C# Sample for the Windows Live&trade; ID Web
        Authentication SDK</h1>

        <p>The text of the link below indicates whether you are signed in
        or not. If the link invites you to <b>Sign in</b>, you are not
        signed in yet. If it says <b>Sign out</b>, you are already signed
        in.</p>

        

<%--    <p>
    <% if(UserId == null) { %>
          This application does not know who you are! Click the <b>Sign in</b> link above.
    <% } else { %>
          Now this application knows that you are the user with ID = "<b><%=UserId%></b>".
    <% } %>
    </p>--%>

    </td></tr></table>
</asp:Panel>
<asp:Panel ID="pnlLogin" runat="server">
        <iframe 
           id="WebAuthControl" 
           name="WebAuthControl"
           src="http://login.live.com/controls/WebAuth.htm?appid=<%=AppId%>&style=font-size%3A+10pt%3B+font-family%3A+verdana%3B+background%3A+white%3B"
           width="80px"
           height="20px"
           marginwidth="0"
           marginheight="0"
           align="middle"
           frameborder="0"
           scrolling="no">
       </iframe>
</asp:Panel>
<asp:Panel ID="pnlContentLogout" runat="server">
    <asp:Label ID="lblUser" runat="server" Text="WellCome: " Font-Bold="True" 
        ForeColor="Blue" Visible="False"></asp:Label>
    
</asp:Panel>
    </form>
</body>
</html>
